package com.yeban.factory.new_instance;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/23
 */
public class SingleInstance {

    private static SingleInstance instance;

    private SingleInstance() {}

    public static SingleInstance getInstance() {
        if(instance == null) {
            instance = new SingleInstance();
        }
        return instance;
    }
}
